package com.example.common.widget.state;


import android.view.ViewGroup;
import android.widget.TextView;

import com.example.common.R;

public class EmptyNetworkStateLayout extends BaseStateView {

    @Override
    public int getLayoutId() {
        return R.layout.layout_empty_state;
    }

    @Override
    public void showView(CharSequence message) {
        super.showView(message);
        TextView textView = getNetworkStateView().findViewById(R.id.text_view);
        textView.setText(message);
    }

    @Override
    public Integer getStateCode() {
        return NetworkStateLayout.EMPTY_NETWORK_STATE;
    }
}
